package com.ruoyi.pos.domain.dto.device.response;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 设备心跳响应DTO
 * 
 * @author ruoyi
 * @date 2025-01-30
 */
@Data
@ApiModel(description = "设备心跳响应")
public class DeviceHeartbeatResponse {

    @ApiModelProperty(value = "设备ID")
    private Long deviceId;

    @ApiModelProperty(value = "设备编码")
    private String deviceCode;

    @ApiModelProperty(value = "设备状态")
    private String status;

    @ApiModelProperty(value = "最后在线时间")
    private Date lastOnlineTime;

    @ApiModelProperty(value = "心跳时间")
    private Date heartbeatTime;

    @ApiModelProperty(value = "处理结果")
    private Boolean success;

    @ApiModelProperty(value = "响应消息")
    private String message;

    @ApiModelProperty(value = "服务器时间")
    private Date serverTime;

    @ApiModelProperty(value = "下次心跳间隔（秒）")
    private Integer nextHeartbeatInterval;

    @ApiModelProperty(value = "是否需要更新配置")
    private Boolean needConfigUpdate;

    @ApiModelProperty(value = "配置版本号")
    private String configVersion;
}
